Fix SMP boot for kernels without CONFIG_HOTPLUG_CPU.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 28 May 2006 08:46:30 +0000 (09:46 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 28 May 2006 08:46:30 +0000 (09:46 +0100)
commite8ea99cff2dc77395cc75e2b19a52e263928a0f8
tree21ce060839c1d3561c9163931762ea7f0a18a42e
parent3903e920a1d78620bb9072c6e2b1f5eaa3188537
Fix SMP boot for kernels without CONFIG_HOTPLUG_CPU.

The function cpu_is_allowed() appears that it should return a boolean
but in fact returns zero on success and an errno on failure. Thus
rename it to the more vague cpu_up_check(), in line with its return
value and thge fact it has unspecified side effects.

Fix the macro definition of cpu_up_check() when building non-hotplug
kernel to return zero rather than one (which always failed secondary
cpu bringup!).

Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/drivers/xen/core/cpu_hotplug.c
linux-2.6-xen-sparse/drivers/xen/core/smpboot.c
linux-2.6-xen-sparse/include/xen/cpu_hotplug.h